class CurrencyExchangeRate < ActiveRecord::Base
  validates_uniqueness_of :timestamp


  def external_format
    res = Hash.new
    res["timestamp"] = timestamp
    self.attributes.each { |k,v| res[k] = "#{v}"}

    res
  end
end
